package com.airclick.merchant;

import com.github.yitter.contract.IdGeneratorOptions;
import com.github.yitter.idgen.YitIdHelper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author AirClick
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
public class MerchantApplication {

    public static void main(String[] args) {
        IdGeneratorOptions options = new IdGeneratorOptions(Short.parseShort(System.getProperty("workerId")));
        YitIdHelper.setIdGenerator(options);
        SpringApplication.run(MerchantApplication.class, args);
    }

}


